package com.dragon.pear.modules.trade.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;
import com.dragon.common.spring.business.base.BaseCrudController;
import com.dragon.pear.modules.trade.domain.entity.TradeGoodsFavoritesEntity;
import com.dragon.pear.modules.trade.web.model.params.create.TradeGoodsFavoritesCreateParam;
import com.dragon.pear.modules.trade.web.model.params.update.TradeGoodsFavoritesUpdateParam;
import com.dragon.pear.modules.trade.web.model.params.search.TradeGoodsFavoritesSearchParam;
import com.dragon.pear.modules.trade.web.model.params.order.TradeGoodsFavoritesOrderParam;
import com.dragon.pear.modules.trade.web.model.results.TradeGoodsFavoritesResult;
import com.dragon.pear.modules.trade.dao.repository.TradeGoodsFavoritesRepository;
import com.dragon.pear.modules.trade.service.assistants.converters.TradeGoodsFavoritesConverter;
import com.dragon.pear.modules.trade.service.def.TradeGoodsFavoritesService;
import com.dragon.pear.modules.trade.web.api.TradeGoodsFavoritesApi;

/**
 * @author Chris Chan
 * Create on 2025-09-30 22:06
 * Use for: 收藏夹 接口实现
 * Explain:
 * 
 */
@RestController
@RequestMapping("trade/goods/favorites")
public class TradeGoodsFavoritesController implements TradeGoodsFavoritesApi, BaseCrudController<
        TradeGoodsFavoritesEntity,
        TradeGoodsFavoritesCreateParam,
        TradeGoodsFavoritesUpdateParam,
        TradeGoodsFavoritesSearchParam,
        TradeGoodsFavoritesOrderParam,
        TradeGoodsFavoritesResult,
        TradeGoodsFavoritesRepository,
        TradeGoodsFavoritesConverter,
        TradeGoodsFavoritesService
        > {

    @Autowired
    TradeGoodsFavoritesService tradeGoodsFavoritesService;

    @Override
    public TradeGoodsFavoritesService getService() {
        return tradeGoodsFavoritesService;
    }
}